<template>
    <div>
        <!-- <header>
            <h3>{{examtime}}</h3>
        </header> -->

        <button type="button" class="exam-color">{{nowType == '㊔'?'单选': nowType == '㊌'?'多选':nowType == '㊋'?'是非':nowType == '㊏'?'名词解释':nowType == '㊕'?'填空':nowType == '㊐'?'简答':nowType == '㊊'?'阅读理解':nowType == '㊎'?'单选共用题干':'单选共用备用答案'}}</button>
        <div v-html="nowTitle"></div>
        <div class="display" >

        </div>
        
    </div>
</template>
<script>
 import cf from '../config/userconf.js'
export default {
    data(){
        return {
            examtime:3600,//倒计时
            nowType:"",//获取当前状态
            nowNum:'',//获取当前题目的数目
            nowTitle:""
        }
    },
    methods:{
       init(data=null){
           
           cf.exams.questionlisttest(data,(status,res)=>{
              if(status="success" && res.data.status == 1){
                  console.log(res)
                //    this.examtime = res.data.status.examtime
                this.nowType = res.data.other.list[0].type
                 this.nowTitle = res.data.other.list[0].content.question
                //  console.log("///"+res.data.other.list[0].content[0].question)
              }
           })
       }
        
    },
    mounted(){
        this.init()
    }
}
</script>
<style>
   .exam-color{
       background-color: red;
       outline: none;
       border-radius: 10px;
       border: none;
       margin: 20px;
   }
</style>

